home *** CD-ROM | disk | FTP | other *** search
/ CDV Software Presents (USA) / CDV Software Presents (USA).bin / demo / bk_demo.exe / DATA.PAK / ui / common / UnitInfoItem.lua < prev    next >
Encoding:
Text File  |  2002-12-16  |  749 b   |  30 lines

  1. nWindowID = 0
  2.  
  3. function LuaInit( ... )
  4.     OutputValue( "LuaInit called()", arg[1] )
  5.     nWindowID = arg[1]
  6. end
  7.  
  8. function LuaProcessMessage( nMessageCode, nFirst, nSecond )
  9.     if ( nMessageCode >= 20000 and nMessageCode < 29000 ) then
  10.         AddMessage( 65537, nMessageCode, 1 )        --? encyclopedia reference
  11.         return 1
  12.     end
  13.  
  14.     if ( nMessageCode == 268435457 ) then
  15.         OutputValue( "268435457 message, nFirst = ", nFirst )
  16.         if ( nFirst >= 20000 and nFirst < 29000 ) then
  17.             local nMessage = SetProcessedFlag( nFirst )
  18.             AddMessage( nMessage, nWindowID, 1 )
  19.             return 1
  20.         end
  21.     end
  22.  
  23.     if ( nMessageCode == 536936448 and ( nFirst >= 20000 and nFirst < 29000 ) ) then --?
  24.         AddMessage( 268435457, nFirst, 1 )
  25.         return 1
  26.     end
  27.  
  28.     return 0
  29. end
  30.